# coding: utf-8
from . import db, BaseModel


class Administrator(db.Model):
    __tablename__ = 'administrator'

    auto_id = db.Column(db.Integer, primary_key=True)
    administrator_id = db.Column(db.Integer, info='管理员id')
    administrator_name = db.Column(db.String(30, 'utf8mb4_general_ci'), info='管理员名')
    administrator_head = db.Column(db.String(255, 'utf8mb4_general_ci'), info='管理员头像')
    administrator_account = db.Column(db.String(50, 'utf8mb4_general_ci'), info='管理员账号')
    administrator_password = db.Column(db.String(255, 'utf8mb4_general_ci'), info='管理员账号密码')
    is_delete = db.Column(db.Integer, server_default=db.FetchedValue(), info='是否删除')
    create_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='创建记录时间')
    update_time = db.Column(db.DateTime, server_default=db.FetchedValue(), info='更新记录时间')
